//
//  UserCollection.h
//  iengage
//
//  Created by Luis Ziliani on 2/9/09.
//  Copyright 2009 Manas. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "User.h";

typedef NSMutableArray UserCollection;

@interface NSMutableArray (UserCollection)

- (void) addUser:(User *)user;

- (User *) userAtIndex:(int) position;

- (User *) lastUser;

- (User *) userByLogin:(NSString *) login;

- (void) fillWithDistances: (CLLocation *) reference;

- (UserCollection *) sortByLocation: (CLLocation *) reference;

- (void) removeUser:(User *) user;
@end
